using System;
using System.Windows.Forms;

using Org.Vesic.WinForms;

namespace Org.Vesic.WinForms
{
    public partial class MaxForm : Form
    {
        FormState formState = new FormState();

        public MaxForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            formState.Maximize(this);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            formState.Restore(this);
        }
    }
}